package com.gao.orange.controller;


import com.gao.orange.api.INacosService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jinYuLinLang
 * @version 1.0.0
 * @ClassName NacosConsumerController.java
 * @Description <p></p>
 * @createTime 2021-03-08 22:47:00
 */
@RestController
@RequestMapping
public class NacosConsumerController {

    @DubboReference(version = "${dubbo.service.version}", check = false)
    private INacosService nacosService;

    @GetMapping("info")
    public String info() {

        return nacosService.test();
    }
}
